import { lazy } from "react";


const router =[
    {
        path:'/home',
        component:lazy(()=>import('../page/home/Home')),
        children:[
            {
                path:'/home/index',
                component:lazy(()=>import('../page/home/index/Index'))
            },
            {
                path:'/home/classfig',
                component:lazy(()=>import('../page/home/classfig/Classfig'))
            },
            {
                path:'/home/shopcar',
                component:lazy(()=>import('../page/home/shopcar/Shopcar'))
            },
            {
                path:'/home/my',
                component:lazy(()=>import('../page/home/my/My'))
            },
            {
                path:'/home',
                to:'/home/index'
            }
    ]
    },
    {
        path:'/login',
        component:lazy(()=>import('../page/login/Login'))
    },
    {
        path:'/publis',
        component:lazy(()=>import('../page/publis/Publis'))
    },
    {
        path:'/',
        to:'/home'
    }
]


export default router
